<?php

$this->title = Yii::t('menu', 'UCC');
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="row">
    <div class="col-md-4"><div class="control-group">
        <label class="control-label"><?=Yii::t('api','department')?></label>
        <div class="controls"><div class="input-append">
        <input class="span2" placeholder="placeholder" type="text">
        <span class="add-on"><i class="fa fa-search"></i></span>
    </div></div></div></div>
    <div class="col-md-4">
        <div class="control-group">
            <label class="control-label"><?=Yii::t('api','game')?></label>
            <div class="controls">
                <div class="input-append">
                    <input class="span2" placeholder="placeholder" type="text">
                    <span class="add-on"><i class="fa fa-search"></i></span>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="control-group">
            <label class="control-label"><?=Yii::t('api','server')?></label>
            <div class="controls">
                <div class="input-append">
                    <input class="span2" placeholder="placeholder" type="text">
                    <span class="add-on"><i class="fa fa-search"></i></span>
                </div>
            </div>
        </div>
    </div>
</div>
<?php
$this->registerJsFile('@web/static/js/code.js',['depends' => 'app\assets\AppAsset']);

$successMsg = Yii::t('app', 'Copy Success');
$errorMsg = Yii::t('app', 'Copy Failed');
$js = <<<js
// 复制结果
new ClipboardJS('#copyRst').on('success', function(e) {
    layer.msg('{$successMsg}', {time: 3000, icon:6});
}).on('error', function(e) {
    layer.msg('{$successMsg}', {time: 5000, icon:5});
});

js;
$this->registerJs($js);
?>